﻿using System.Diagnostics;
using System.Windows.Navigation;

namespace Zuehlke.Blueprint.Quickstart.Architecture.Presentation.UserInterface.Views
{
    /// <summary>
    /// Interaction logic for CustomerDetailsView.xaml
    /// </summary>
    public partial class CustomerDetailsView
    {
        public CustomerDetailsView()
        {
            InitializeComponent();
        }

        private void OnMailHyperlinkRequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            var mailtoUri = string.Concat("mailto:", e.Uri);
            Process.Start(new ProcessStartInfo(mailtoUri));
            e.Handled = true;
        }
    }
}
